import 'osc_author.dart';

class OscTweetComment {
	OscAuthor author;
	int voteState;
	int id;
	int voteCount;
	String pubDate;
	String content;
	int appClient;

	OscTweetComment({this.author, this.voteState, this.id, this.voteCount, this.pubDate, this.content, this.appClient});

	OscTweetComment.fromJson(Map<String, dynamic> json) {
		author = json['author'] != null ? new OscAuthor.fromJson(json['author']) : null;
		voteState = json['voteState'];
		id = json['id'];
		voteCount = json['voteCount'];
		pubDate = json['pubDate'];
		content = json['content'];
		appClient = json['appClient'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.author != null) {
      data['author'] = this.author.toJson();
    }
		data['voteState'] = this.voteState;
		data['id'] = this.id;
		data['voteCount'] = this.voteCount;
		data['pubDate'] = this.pubDate;
		data['content'] = this.content;
		data['appClient'] = this.appClient;
		return data;
	}
}
